package com.xzt.bookstore.dto;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

/**
 * 添加购物车请求DTO
 */
@Data
public class CartAddRequest {
    
    @NotNull(message = "图书ID不能为空")
    @Positive(message = "图书ID必须大于0")
    private Long bookId;
    
    @NotNull(message = "数量不能为空")
    @Positive(message = "数量必须大于0")
    private Integer quantity = 1;
}

